// var shareurl = 'https://n.qikeya.com/saas/public/index.php/';
// var shareurl_erp = 'https://n.qikeya.com/erp_api/public/index.php/';

// 正式
var shareurl = 'https://appapi.qikeya.cn/';
var shareurl_erp = 'https://api-erp.qikeya.cn/';

var appid = 'http://171pk17641pkzone1.h5.1pkj.cn',
    wechaturl = 'qkyPay/class/newkong.html',
    wechaturl1 = window.location.href.split(':')[0];

var sharerequest = {
    postMethod(url, data, istype, scallback) {
        if (Number(istype) == 1) {
            var urlwz = shareurl_erp + url;
        } else {
            var urlwz = shareurl + url;
        }
        $.ajax({
            type: 'POST',
            url: urlwz,
            data: data,
            contentType: 'application/x-www-form-urlencoded',
            headers: {
                version: 'v1',
                fromsource: 1,
                device: 'H5',
                token: '',
                appid: appid,
            },
            success: function(res) {
                scallback(res)
            }
        })
    }
}